<form class="form-search">
							<div class="row">
								<div class="col-sm-2">
									<label for="" class="control-label">年级</label>
									 <div class="controls">
										<select class="form-control" name="grade">
										<option value = "">&nbsp;&nbsp;</option>
										<?php
										   $currentYear = date('Y');
										   $currentYear = (int)$currentYear - 5;
										   for($i = 5;$i>=0;$i--){
											   if(Yii::app()->request->getParam('grade') == $currentYear){
												   echo ' <option selected="selected" value="'.$currentYear.'" >'.$currentYear++.'</option>';
											       continue;
											   }
											   echo ' <option value="'.$currentYear.'">'.$currentYear++.'</option>';
											   
										   }
										?>
										  
										</select>
									  </div> 
								</div>
								<div class="col-sm-3">
									<label for="" class="control-label">专业</label>
										 <div class="controls">
									   <select class="form-control" name="major">
																		<?php
																			  
																			  echo ' <option value="">&nbsp;&nbsp</option>';
																			  foreach($major as $m){
																				 if(Yii::app()->request->getParam('major') == $m->name){
																				     echo ' <option selected="selected" value="'.$m->name.'">'.$m->name.'</option>';
																				    continue;
																			     }
																				echo '<option value="'.$m->name.'" >'.$m->name.'</option>';
																				  
																			  }
																			?>
																		</select>
										  </div> 
								</div>
								<div class="col-sm-3">
									<label for="" class="control-label">班级</label>
									<select class="form-control" name = "classRoom">
								<?php
								 echo ' <option value="">&nbsp;&nbsp</option>';
							     foreach($classRooms as $c){
									   if(Yii::app()->request->getParam('classRoom') == $c->name){
											echo ' <option selected="selected" value="'.$c->name.'">'.$c->name.'</option>';
										    continue;
									  }
										echo ' <option value="'.$c->name.'" >'.$c->name.'</option>';
																		   
								}
								?>
								    </select>
								</div>
								<div class="col-sm-2">
									<label for="" class="control-label">学号</label>
									<input type="text" class="form-control" name="stuNumber" placeholder="学号" value="<?php echo Yii::app()->request->getParam('stuNumber');?>">
								</div>
																
								
								
								<div class="col-sm-2">
									<br>
				                   <button class="btn btn-primary" type="submit"><i class="icon-search">查询</i></button>
								</div>
								
                                  
				</div>
</form>	